<svg
  width="31"
  height="27"
  viewBox="0 0 31 27"
  fill="none"
  xmlns="http://www.w3.org/2000/svg"
  style="transform:scale(1.25)"
>
  <!-- Face (with smoother spring animation) -->
  <g id="face" transform-origin="15 13">
    <!-- Eyes -->
    <rect
      x="16.3409"
      y="11.4247"
      width="2.36972"
      height="1.78768"
      rx="0.893841"
      transform="rotate(-91.9771 16.3409 11.4247)"
      fill="#5B6882"
    />
    <rect
      x="11.481"
      y="11.6339"
      width="2.41129"
      height="1.78768"
      rx="0.893841"
      transform="rotate(-91.9771 11.481 11.6339)"
      fill="#5B6882"
    />
    <!-- Smile -->
    <path
      d="M10.7994 14.1994C11.5246 15.2186 13.0046 15.9527 14.947 15.8856C16.9726 15.8157 18.4028 14.9812 19.0677 13.9139"
      stroke="#5B6882"
      stroke-linecap="round"
      stroke-linejoin="bevel"
    />

    <!-- Combined scale and rotate transform with smoother spring -->
    <animateTransform
      attributeName="transform"
      type="scale"
      values="1;1;1.2;1.5;1.75;1.82;1.8;1.8;1.8;1.78;1.8;1.4;1.15;1.02;1"
      dur="5s"
      keyTimes="0;0.4;0.41;0.42;0.43;0.44;0.45;0.6;0.8;0.81;0.82;0.83;0.85;0.87;1"
      repeatCount="indefinite"
      additive="sum"
    />
    <animateTransform
      attributeName="transform"
      type="rotate"
      values="0;0;3;5;6.5;7;7;7;7;6.8;7;3;1;0;0"
      dur="5s"
      keyTimes="0;0.4;0.41;0.42;0.43;0.44;0.45;0.6;0.8;0.81;0.82;0.83;0.85;0.87;1"
      repeatCount="indefinite"
      additive="sum"
    />
  </g>

  <!-- Border (animated) -->
  <g transform-origin="15 13">
    <path
      id="border"
      fill-rule="evenodd"
      clip-rule="evenodd"
      d="M7.99725 4.85181L9.88897 4.78168L9.9538 6.53048L8.06209 6.60061C7.33365 6.62761 6.89254 6.64533 6.56467 6.68439C6.3271 6.71269 6.24245 6.74337 6.22546 6.75072C6.08744 6.82773 5.97728 6.94638 5.9107 7.08972C5.90463 7.1072 5.8803 7.19389 5.86967 7.43291C5.85499 7.76277 5.86998 8.20398 5.89699 8.93242L5.92446 9.67336L4.17566 9.73819L4.14819 8.99725C4.09632 7.59808 4.07038 6.8985 4.32287 6.35399C4.54496 5.87503 4.91298 5.47867 5.37418 5.22173C5.8985 4.92962 6.59808 4.90368 7.99725 4.85181ZM4.23812 11.4229L4.34742 14.3711L6.09621 14.3062L5.98692 11.358L4.23812 11.4229ZM23.9038 10.6938L24.0131 13.642L25.7619 13.5772L25.6526 10.629L23.9038 10.6938ZM25.5901 8.94429L25.5627 8.20335C25.5108 6.80418 25.4848 6.1046 25.1927 5.58028C24.9358 5.11908 24.5394 4.75106 24.0605 4.52896C23.516 4.27648 22.8164 4.30242 21.4172 4.35429L19.5254 4.42442L19.5903 6.17322L21.482 6.10309C22.2105 6.07608 22.6517 6.06109 22.9816 6.07576C23.2205 6.0864 23.3072 6.11072 23.3247 6.11679C23.4681 6.18337 23.5867 6.29354 23.6637 6.43156C23.6711 6.44852 23.7018 6.53317 23.7301 6.77077C23.7691 7.09864 23.7868 7.53974 23.8139 8.26818L23.8413 9.00912L25.5901 8.94429ZM25.8243 15.2619L24.0755 15.3267L24.103 16.0676C24.13 16.796 24.145 17.2373 24.1303 17.5671C24.1197 17.8061 24.0954 17.8928 24.0893 17.9103C24.0227 18.0536 23.9125 18.1723 23.7745 18.2493C23.7575 18.2567 23.6729 18.2873 23.4353 18.3156C23.1075 18.3547 22.6663 18.3724 21.9379 18.3994L20.0461 18.4696L20.111 20.2184L22.0027 20.1482C23.4019 20.0963 24.1015 20.0704 24.6258 19.7783C25.087 19.5214 25.455 19.125 25.6771 18.646C25.9296 18.1015 25.9037 17.4019 25.8518 16.0028L25.8243 15.2619ZM6.15867 15.9909L4.40987 16.0558L4.43734 16.7967C4.48921 18.1958 4.51515 18.8954 4.80726 19.4198C5.0642 19.881 5.46056 20.249 5.93952 20.4711C6.48403 20.7235 7.18361 20.6976 8.58278 20.6457L10.4745 20.5756L10.4097 18.8268L8.51795 18.8969C7.78951 18.9239 7.3483 18.9389 7.01845 18.9243C6.77941 18.9136 6.69272 18.8893 6.67525 18.8832C6.53191 18.8167 6.41326 18.7065 6.33625 18.5685C6.32891 18.5515 6.29823 18.4668 6.26992 18.2293C6.23086 17.9014 6.21315 17.4603 6.18614 16.7318L6.15867 15.9909ZM11.6021 4.71816L11.667 6.46696L17.8771 6.23673L17.8123 4.48793L11.6021 4.71816ZM12.1877 20.5121L12.1228 18.7633L18.333 18.5331L18.3978 20.2819L12.1877 20.5121Z"
      fill="#5B6882"
    >
      <animate
        id="borderAnimation"
        attributeName="opacity"
        values="1;1;0;-0.2;0;0;0;0;0;1;1.1;1"
        dur="5s"
        keyTimes="0;0.4;0.42;0.44;0.47;0.6;0.7;0.8;0.82;0.85;0.87;1"
        repeatCount="indefinite"
      />
    </path>
    <animateTransform
      attributeName="transform"
      type="scale"
      values="1;1;0.8;0.85;0.85;0.85;0.85;0.85;0.85;1;1.05;1"
      dur="5s"
      keyTimes="0;0.4;0.42;0.44;0.47;0.6;0.7;0.8;0.82;0.85;0.87;1"
      repeatCount="indefinite"
    />
  </g>

  <!-- Cursor (animated) -->
  <g id="cursor" transform-origin="23 18">
    <!-- Cursor border -->
    <path
      d="M21.5516 16.0591C21.3784 15.8856 21.0819 16.0082 21.0819 16.2534V21.498C21.0819 21.7406 21.3733 21.8644 21.5479 21.6958L22.822 20.4659L22.9158 20.3844H25.2045C25.4493 20.3844 25.5721 20.0885 25.3992 19.9152L21.5516 16.0591Z"
      fill="#5B6882"
      stroke="#5B6882"
      stroke-width="2"
    >
      <animate
        id="cursorBorderAnimation"
        attributeName="opacity"
        values="1;1;0;-0.2;0;0;0;0;0;1;1.1;1"
        dur="5s"
        keyTimes="0;0.4;0.42;0.44;0.47;0.6;0.7;0.8;0.82;0.85;0.87;1"
        repeatCount="indefinite"
      />
    </path>
    <!-- Cursor fill -->
    <path
      fill-rule="evenodd"
      clip-rule="evenodd"
      d="M21.5516 16.0591C21.3784 15.8856 21.0819 16.0082 21.0819 16.2534V21.498C21.0819 21.7406 21.3733 21.8644 21.5479 21.6958L22.822 20.4659L22.9158 20.3844H25.2045C25.4493 20.3844 25.5721 20.0885 25.3992 19.9152L21.5516 16.0591Z"
      fill="#FF6FCA"
    >
      <animate
        id="cursorFillAnimation"
        attributeName="opacity"
        values="1;1;0;-0.2;0;0;0;0;0;1;1.1;1"
        dur="5s"
        keyTimes="0;0.4;0.42;0.44;0.47;0.6;0.7;0.8;0.82;0.85;0.87;1"
        repeatCount="indefinite"
      />
    </path>
    <animateTransform
      attributeName="transform"
      type="scale"
      values="1;1;0.8;0.85;0.85;0.85;0.85;0.85;0.85;1;1.05;1"
      dur="5s"
      keyTimes="0;0.4;0.42;0.44;0.47;0.6;0.7;0.8;0.82;0.85;0.87;1"
      repeatCount="indefinite"
    />
  </g>
</svg>
